<%-- 
    Document   : login
    Created on : 13-déc.-2012, 19:04:16
    Author     : Anthares
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="loginStatus" type="java.lang.Boolean" required="false" %>


<fmt:setLocale value="${locale}"/>
<fmt:setBundle basename="Languages.lang"/>

<core:if test="${loginStatus !=null && !loginStatus}">
    <h1><fmt:message key="form.login.error.general"/></h1>
</core:if>
<form id="login-form" method="POST" action="<core:url value="/login/login"/>">
    <input class="email top" type="text" name="email" placeholder="<fmt:message key="form.login.email.hint"/>"
           data-validation-engine="validate[required,custom[email]]"
           data-prompt-position="bottomLeft"
           data-errormessage-value-missing="<fmt:message key="form.login.email.error.required"/>"
           data-errormessage="<fmt:message key="form.login.email.error.value"/>"/><br/>
    <input class="password" type="password" name="password" placeholder="<fmt:message key="form.login.pass.hint"/>"
           data-validation-engine="validate[required,minSize[8],custom[onlyLetterNumber]]"
           data-prompt-position="bottomLeft"
           data-errormessage-value-missing="<fmt:message key="form.login.pass.error.required"/>"
           data-errormessage-range-underflow="<fmt:message key="form.login.pass.error.value"/>"/><br/>
    <input class="button bottom" type="submit" value="<fmt:message key="form.login.button"/>"/>
</form>